package top.kaoshanji.p4ch25c;

/**
 * 代码清单-p4ch25c-318页a：抽象元素
 * @author kaoshanji
 * ^_^
 * create time 2025/3/27 10:54
 */
public abstract class Element {

    /**
     * 定义业务逻辑
     */
    public abstract void doSomething();

    /**
     * 允许谁来访问
     * @param visitor IVisitor
     */
    public abstract void accept(IVisitor visitor);



}
